package exams.binary;

public class TraversalSolutionTest {

    static TraversalSolution traversalSolution = new TraversalSolution();

    public static void main(String[] args) {
        testDfs();
    }

    public static void testDfs() {
        TreeNode treeNode = new TreeNode(1);
        treeNode.left = new TreeNode(2); treeNode.left.left = new TreeNode(3); treeNode.left.left.left = new TreeNode(4); treeNode.left.left.right= new TreeNode(5); treeNode.left.right = new TreeNode(6);
        treeNode.right = new TreeNode(7); treeNode.right.left = new TreeNode(8); treeNode.right.right = new TreeNode(9); treeNode.right.right.left= new TreeNode(10); treeNode.right.right.right = new TreeNode(11);

        traversalSolution.dfs(treeNode);
    }

}
